package tools

import (
	"krm-backend/controllers/tools"
	// "krm-backend/routers/tools"

	"github.com/gin-gonic/gin"
)

func yaml(toolsGroup *gin.RouterGroup) {
	toolsGroup.POST("/yaml", tools.Yaml)
}

func ping(toolsGroup *gin.RouterGroup) {
	toolsGroup.GET("/ping", tools.Ping)
}

func RegisterSubRouter(g *gin.RouterGroup) {
	toolsGroup := g.Group("/tools")
	// add(toolsGroup)
	// update(toolsGroup)
	// delete(toolsGroup)
	// get(toolsGroup)
	yaml(toolsGroup)
	ping(toolsGroup)
	// deleteList(toolsGroup)
}
